import java.io.File;

/**
 * Creater with IntelliJ IDEA.
 * Description:
 * User: 86152
 * Dae: 2022-08-02
 * Time: 21:07
 */
public class demo3 {
    public static void main(String[] args) {

        //mkdirs创建多级目录
        File file2 = new File("dir1\\next-dir");
        System.out.println(file2.isDirectory());
        file2.mkdirs();
        System.out.println(file2.isDirectory());
    }
}
